/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javamines;

import javamines.controller.BoardController;
import javamines.controller.GameController;
import javamines.model.BoardModel;
import javamines.model.Difficulty;
import javamines.view.BoardPanel;
import javamines.view.GameFrame;

/**
 *
 * @author Lucas
 */
public class Main {
    
    public static void main(String args[]){
        
        Difficulty diff = Difficulty.MEDIUM;

        BoardModel boardModel = new BoardModel(diff);
        BoardPanel boardPanel = new BoardPanel(boardModel);
        GameFrame gameFrame = new GameFrame(boardPanel, boardModel);
        
        boardModel.addObserver(gameFrame);

        new BoardController(boardModel, boardPanel);
        new GameController(boardModel, gameFrame, boardPanel);

        gameFrame.repaint();
        gameFrame.validate();
        
    }
    
}
